<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
    'as'            => config('admin.route.prefix') . '.',
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('home');

    $router->resource('schools', SchoolController::class);
    $router->get('schools_allschools','SchoolController@getSchools');
    $router->get('schools_studyApp','SchoolController@studyApp');

    $router->resource('videos', VideoController::class);
    $router->get('videos_montage','VideoController@montage');
    $router->get('videos_screenShot','VideoController@screenShot');
    $router->get('videos_watermark','VideoController@watermark');
    $router->get('videos_record_sync','VideoController@record_sync');
    $router->get('videos_record_async','VideoController@record_async');
    $router->get('async_queue_test','VideoController@async_queue_test');

    $router->resource('cascades', CascadeController::class);

    $router->get('cascades/getByMap/{type?}/{parent_id?}','CascadeController@getCascades')->name('cascades.getByMap');
    $router->get('cascades_setting','CascadeController@setting');
    $router->get('cascades_del/{ids?}','CascadeController@del');
    
    $router->resource('classes', ClassesController::class);
    $router->resource('sections', SectionController::class);
    $router->resource('courses', CourseController::class);
    $router->resource('enclosures', EnclosureController::class);
    $router->resource('evaluates', EvaluateController::class);
    $router->resource('evaluate-questions', EvaluateQuestionController::class);
    $router->resource('evaluate-results', EvaluateResultController::class);
    $router->resource('notices', NoticeController::class);

    
});

// Route::get('cascades/happy','CascadeController@happy');


